package com.dayaokeji.rhythmschoolstudent.client.home.course

import android.app.Activity
import android.content.Context
import android.content.Intent
import android.os.Bundle
import com.dayaokeji.rhythmschoolstudent.R
import com.dayaokeji.rhythmschoolstudent.client.common.CommonWebClientFragment
import com.dayaokeji.rhythmschoolstudent.client.common.base.common.BaseActivity
import kotlinx.android.synthetic.main.activity_course_error_helper.*

class CourseErrorHelperActivity : BaseActivity() {

    private val webUrl = "http://www.jiantuokeji.com/LvDongXiaoYuan/m/article.php?id=20";

    companion object {
        fun navigation(cxt: Context) {
            val intent = Intent(cxt, CourseErrorHelperActivity::class.java)
            cxt.startActivity(intent)
        }
    }

    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.activity_course_error_helper)
        setSupportActionBar(toolbar)

        init()
    }

    private fun init() {
        setupView()
    }

    private fun setupView() {
        supportFragmentManager.beginTransaction().replace(R.id.fl_content,CommonWebClientFragment.newInstance(webUrl)).commit()
    }
}
